package com.huiyou.adminapi.repository;

import com.huiyou.adminapi.common.model.SysRole;
import com.huiyou.adminapi.common.model.SysUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleRepository extends JpaRepository<SysRole, String> {

    List<SysRole> findByUserId(String userId);

    void deleteByUserId(String userId);
}


